<?php
declare (strict_types = 1);

namespace app\api\controller\Product;

use app\BaseController;
use app\common\model\Product\Product as ProductModel;
use app\common\model\Product\Type as TypeModel;

class Type extends BaseController
{
    public function index()
    {
        $TypeList = TypeModel::order('weigh','desc')->select();

        $this->success('查询成功',null,$TypeList);
    }
}